﻿using System;
using System.Collections.Generic;
using System.Text;
using Framework.Platform.Components.UI.View;

namespace Framework.Platform.Components
{
    /// <summary>
    /// 程序主计面接口
    /// </summary>
    public interface IApplicationMainUI : IDisposable
    {
        event EventHandler<EventArgs> ApplicationClosed;
        /// <summary>
        /// 系统导航
        /// </summary>
        IList<INavigator> Navigators { get; set; }
        /// <summary>
        /// 模块
        /// </summary>
        IList<IModuleView> ModuleViews { get; set; }
        /// <summary>
        /// 关闭界面
        /// </summary>
        void HideUI();
        /// <summary>
        /// 显示界面
        /// </summary>
        void ShowUI();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="moduleView"></param>
        void AddModuleView(IModuleView moduleView);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="view"></param>
        void RemoveModuleView(string moduleViewKey);
    }
}